﻿using System;
using System.Collections.Generic;
using System.Data.Entity.ModelConfiguration;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Himall.Entity.Config
{
   public class ShopHomeModuleProductInfoConfig : EntityTypeConfiguration<ShopHomeModuleProductInfo>
    {
        public ShopHomeModuleProductInfoConfig()
        {
            ToTable("Himall_ShopHomeModuleProducts");
            HasRequired(x => x.ShopHomeModuleInfo).WithMany(x => x.ShopHomeModuleProductInfo).HasForeignKey(x => x.HomeModuleId);
            HasRequired(x => x.ProductInfo).WithMany(x => x.Himall_ShopHomeModuleProducts).HasForeignKey(x => x.ProductId);
        }
    }
}
